// 个人信息-用户详情信息接口

import type { ProfileDetail, ProfileParams } from "@/types/member"
import { http } from "@/utils/http"

// 获取个人信息-用户详情信息接口
export const getMemberProfileAPI = () => {
    return http<ProfileDetail>({
        method: 'GET',
        url: '/member/profile'
    })
}

// 修改个人信息接口(data为请求体参数)
export const putMemberProfileAPI = (data: ProfileParams) => {
    return http<ProfileDetail>({
        method: 'PUT',
        url: '/member/profile',
        data
    })
}